#include "stdafx.h"
#include "Teacher.h"
#include <string>
#include <iostream>
Teacher::Teacher()
{
}

Teacher::Teacher(const std::string &tid, const std::string &na, const std::string &dn)
{
	id = tid;
	name = na;
	deptName = dn;
}
std::string Teacher::getId()
{
	return id;
}
void Teacher::setId(const std::string & i)
{
	id = i;
}
std::string Teacher::getName()
{
	return name;
}
void Teacher::setName(const std::string & i)
{
	name = i;
}
std::string Teacher::getDeptName()
{
	return deptName;
}
void Teacher::setDeptName(const std::string & i)
{
	deptName = i;
}
void Teacher::show()
{
	using std::cout;
	using std::endl;
	cout << "teacherId:" << id << ", name:" << name << ", deptName:" << deptName << endl;
}
Teacher::~Teacher()
{
}
